#ifndef __CWINDOW_H__
#define __CWINDOW_H__
#include <d3dx9.h>
#include <string>
#include "..\Engine\CDevice.h"
#include "..\Util\Utilities.h"
#include "..\Includes\IWindow.h"
#include "CGUIObject.h"
#pragma warning( disable : 4250 )
namespace GUI
{
class CWindow : public CGUIObject, public IWindow
{
public:
  CWindow(const int w, const int h);
  ~CWindow();

  virtual void setBackgroundImage(const std::string texture_in, const int r, const int g, const int b);

  virtual void render();
  virtual void clean();
  virtual void onLostDevice();
  virtual void onResetDevice();


  /*
  virtual void setPosition(const float x, const float y);
  virtual void setVisible(const bool v);
  virtual void setOccupacity(const float o);
  virtual bool isVisible();
  virtual float getPosX();
  virtual float getPosY();
  virtual float getOccupacity();
  virtual int getWidth();
  virtual int getHeight();
  */



private:

  void init();
  std::string textureFile;
  ID3DXSprite* pSprite;
  IDirect3DTexture9* pTexture;
  IDirect3DDevice9* pD3DDevice;
  int keyR,keyG,keyB;
};

}
#pragma warning( default :4250 )
#endif
